package com.example.familylibrary.repository;

import com.example.familylibrary.entity.ReadingNoteEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReadingNoteRepository extends JpaRepository<ReadingNoteEntity, Long> {
    List<ReadingNoteEntity> findByUserIdAndBookId(Long userId, Long bookId);
    List<ReadingNoteEntity> findByBookId(Long bookId);
    List<ReadingNoteEntity> findByUserId(Long userId);
}